// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
var app = angular.module('starter', ['ionic','ngCordova','app.config','app.backservice','app.test','welcome.config','welcome.controller','leader.config','leader.controller','login.config','register.config']);
var isFirst = true;
app.run(['$ionicPlatform','DB','BackThread','Test',function($ionicPlatform,DB,BackThread,Test){
  $ionicPlatform.ready(function(){
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }

    if(navigator.splashscreeen){
      navigator.splashscreeen.hide();
    }
    DB.init();
    Test.start();
    BackThread.start();

  });
}])
;
